package app.modules.account.dto.web;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;

/**
 * @author mh.z
 */
@Schema(title = "当前用户信息")
public class WebCurrentUserDTO {

    @Schema(title = "用户ID")
    private Long userId;

    @Schema(title = "用户名称")
    private String userName;

    /** 用户类型 */
    @TableField("user_type")
    private String userType;

    @Schema(title = "权限")
    private List<String> privileges;

    @Schema(title = "租户ID")
    private Long tenantId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public List<String> getPrivileges() {
        return privileges;
    }

    public void setPrivileges(List<String> privileges) {
        this.privileges = privileges;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }
}
